---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a2.log
  log type:  text
 opened on:  11 Jun 2020, 12:29:40

. 
. use "$path/foreclosures_analysis.dta", clear

. 
. // lagged dv setup
. replace lag_pres = lag_pres * 100
(9,540 real changes made)

. 
. // run the lagged dv on our sample from table 1
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs lag_pres foreclosure_rate foreclosure_inc [aw=pop_y], a(sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,536
Absorbing 1 HDFE group                          Replications      =      1,000
                                                Wald chi2(3)      =   32950.25
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9676
                                                Adj R-squared     =     0.9669
                                                Root MSE          =     2.8594

                                    (Replications based on 2,839 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        lag_pres |   1.069728   .0058999   181.31   0.000     1.058164    1.081291
foreclosure_rate |   .0189217   .0816717     0.23   0.817    -.1411518    .1789953
 foreclosure_inc |  -.3311723   .0709217    -4.67   0.000    -.4701763   -.1921682
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
              sy |          196             196              0     | 
-------------------------------------------------------------------+

. local b1 = _b[lag_pres]

. local se1 = _se[lag_pres]

. local b1_2 = _b[foreclosure_rate]

. local se1_2 = _se[foreclosure_rate]

. local bint1 = _b[foreclosure_inc]

. local seint1 = _se[foreclosure_inc]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs lag_pres foreclosure_rate foreclosure_inc [aw=pop_y], a(popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,540
Absorbing 1 HDFE group                          Replications      =      1,000
                                                Wald chi2(3)      =   21453.36
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9540
                                                Adj R-squared     =     0.9538
                                                Root MSE          =     3.3988

                                    (Replications based on 2,840 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
        lag_pres |    .991796   .0069457   142.79   0.000     .9781827    1.005409
foreclosure_rate |   .0217049   .0743691     0.29   0.770    -.1240558    .1674657
 foreclosure_inc |  -.3023586   .0697198    -4.34   0.000    -.4390068   -.1657103
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
         popyear |           40              40              0     | 
-------------------------------------------------------------------+

. local b2 = _b[lag_pres]

. local se2 = _se[lag_pres]

. local b2_2 = _b[foreclosure_rate]

. local se2_2 = _se[foreclosure_rate]

. local bint2 = _b[foreclosure_inc]

. local seint2 = _se[foreclosure_inc]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a2.log
  log type:  text
 closed on:  11 Jun 2020, 12:32:30
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
